#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <qipan.h>
#include "stdshared.h"
#include "gamelogic.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private:
    void computerMove();
public slots:
    void handleChessClickSlot(int row,int col);
    void handleChessPosSlot(int row,int col);
private:
    Ui::MainWindow *ui;
    qipan *m_qipan;
    /*游戏规则*/
    GameLogic * m_logic;
    int chessPlayer = EMPTY;
    int boardSize = 0;
};

#endif // MAINWINDOW_H
